Optimal. Leaf size=14 \[ -\cot (x) \sqrt {a \sin ^2(x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3286, 2718}
\begin {gather*} -\cot (x) \sqrt {a \sin ^2(x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3286
Rubi steps
\begin {align*} \int \sqrt {a \sin ^2(x)} \, dx &=\left (\csc (x) \sqrt {a \sin ^2(x)}\right ) \int \sin (x) \, dx\\ &=-\cot (x) \sqrt {a \sin ^2(x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 14, normalized size = 1.00 \begin {gather*} -\cot (x) \sqrt {a \sin ^2(x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.30, size = 16, normalized size = 1.14
method | result | size |
default | \(-\frac {a \cos \left (x \right ) \sin \left (x \right )}{\sqrt {a \left (\sin ^{2}\left (x \right )\right )}}\) | \(16\) |
risch | \(-\frac {i \sqrt {-a \left ({\mathrm e}^{2 i x}-1\right )^{2} {\mathrm e}^{-2 i x}}\, {\mathrm e}^{2 i x}}{2 \left ({\mathrm e}^{2 i x}-1\right )}-\frac {i \sqrt {-a \left ({\mathrm e}^{2 i x}-1\right )^{2} {\mathrm e}^{-2 i x}}}{2 \left ({\mathrm e}^{2 i x}-1\right )}\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 13, normalized size = 0.93 \begin {gather*} -\frac {\sqrt {a}}{\sqrt {\tan \left (x\right )^{2} + 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 19, normalized size = 1.36 \begin {gather*} -\frac {\sqrt {-a \cos \left (x\right )^{2} + a} \cos \left (x\right )}{\sin \left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.11, size = 17, normalized size = 1.21 \begin {gather*} - \frac {\sqrt {a \sin ^{2}{\left (x \right )}} \cos {\left (x \right )}}{\sin {\left (x \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 17, normalized size = 1.21 \begin {gather*} -{\left (\cos \left (x\right ) \mathrm {sgn}\left (\sin \left (x\right )\right ) - \mathrm {sgn}\left (\sin \left (x\right )\right )\right )} \sqrt {a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 13.64, size = 40, normalized size = 2.86 \begin {gather*} -\frac {\sqrt {2}\,\sqrt {a}\,\sqrt {2\,{\sin \left (x\right )}^2}\,\left (-{\sin \left (x\right )}^2+\frac {\sin \left (2\,x\right )\,1{}\mathrm {i}}{2}+1\right )}{{\sin \left (x\right )}^2\,2{}\mathrm {i}+\sin \left (2\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________